package com.dreamers.pathcore;

public class AStarTransform implements Comparable<AStarTransform> {

    Vector2 position;
    AStarTransform aStarTransformParent;
    private int f = 0;
    private int h = 0;
    private int g = 0;

    public AStarTransform() {
    }

    @Override
    public String toString() {
        return "AStarTransform{" +
                "position=" + position +
                //", aStarTransformParent=" + aStarTransformParent +
                ", f=" + f +
                ", h=" + h +
                ", g=" + g +
                '}';
    }

    public Vector2 getPosition() {
        return position;
    }

    public void setPosition(Vector2 position) {
        this.position = position;
    }

    public AStarTransform getaStarTransformParent() {
        return aStarTransformParent;
    }

    public void setaStarTransformParent(AStarTransform aStarTransformParent) {
        this.aStarTransformParent = aStarTransformParent;
    }

    public int getF() {
        return f;
    }

    public void setF(int f) {
        this.f = f;
    }

    public int getH() {
        return h;
    }

    public void setH(int h) {
        this.h = h;
    }

    public int getG() {
        return g;
    }

    public void setG(int g) {
        this.g = g;
    }


    @Override
    public int compareTo(AStarTransform o) {
        return this.getF() > o.getF() ? 1 : -1;
    }
}
